package com.xyh.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class Comment {

    private Long id;
    private String nickname;
    private String email;
    private String content;
    private String avatar;//头像
    private Date createTime;
//    private Blog blog;//多个评论对应一个博客
    private Long blogId;
    private Boolean adminComment;
    private List<Comment> replyComments = new ArrayList<>();//一个评论下面有多个回复;
    private Comment parentComment;//多个回复对应一个评论（父级）
}
